package com.api.league.dao;

import com.api.core.ApiMapper;
import com.api.league.model.LeagueTeam;
import com.api.league.vo.LeagueTeamMembersVo;
import com.api.league.vo.LeagueTeamVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author RenQiang
 * @date 2021/5/28
 */
@Mapper
public interface LeagueTeamMapper extends ApiMapper<LeagueTeam> {
    /**
     * 分页查询
     *
     * @param conditionMap
     * @return
     */
    List<LeagueTeamVo> findByPage(@Param("conditionMap") Map<String, Object> conditionMap);

    void deleteByLeagueId(@Param("leagueId") Long leagueId);

    List<LeagueTeamMembersVo> listDetail(@Param("leagueId") Long leagueId, @Param("conditions") Map<String, Object> conditions);
}
